package com.bootdo.clouddo.service.juejin;

import java.util.List;

import com.bootdo.clouddo.domain.juejin.CategoryDO;
import com.bootdo.clouddo.domain.juejin.PostDO;
import com.bootdo.clouddo.domain.juejin.TagDO;

public interface IPostService {
	
	int save(PostDO post);
	
	PostDO get(String id);
	
	List<PostDO> findTop(Integer num);
	
	List<PostDO> findByUser(String userId, Integer page, Integer size);

	List<PostDO> find(String[] category, String wd, String channel, Integer page, Integer size);
	
	List<CategoryDO> findCategoriesByUser(String userId);
	
	List<TagDO> findTagsByUser(String userId);
	
	boolean exists(String id);

}
